// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import Vue from 'vue'
import Vue from 'vue';
import router from './router';
import App from './App'
import FastClick from 'fastclick';
import Icon from 'vue-svg-icon/Icon.vue';
import VueScroller from 'vue-scroller'
import store from './store/index';

import {WechatPlugin} from 'vux'
Vue.component('icon', Icon);
if('ontouchstart' in window) {
    FastClick.attach(document.body);
}
import  {AlertPlugin, ToastPlugin, ConfirmPlugin} from 'vux'
Vue.use(VueScroller);
Vue.use(AlertPlugin);
Vue.use(ToastPlugin);
Vue.use(WechatPlugin);
Vue.use(ConfirmPlugin);
import Raven from 'raven-js';
import RavenVue from 'raven-js/plugins/vue';
Raven
    .config('https://e86bcbc1e1f140c9a1788eef16cb6608@sentry.io/270447')
    .addPlugin(RavenVue, Vue)
    .install();
/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: {App}
});
